<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String contextPath = request.getContextPath();
if(session.getAttribute("msg")!=null){
	String msg = (String)session.getAttribute("msg");
	out.println(msg + "<br/>");
	session.removeAttribute("msg");
}
%>
<form action="<%=contextPath%>/LoginServlet" method="post">
用户名：<input type="text" name="userName" /><br/>
密码：<input type="password" name="password" /><br/>
<input type="submit" value="登录" />
</form>